package com.wlc.springdemo.dao;

import com.wlc.springdemo.po.BookStore;
import com.wlc.springdemo.po.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookStoreMapper {

    

    /**
     * 查询所有库存
     * @return
     */
    List<BookStore> getAllBookStore();

    int lessStock(@Param("id") int id,@Param("total") int total);
}